package com.freesky.biz.rights.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freesky.biz.activity.domain.TRechargeDetail;
import com.freesky.biz.rights.domain.RightsMobileRechargeEntity;
import com.freesky.biz.rights.domain.RightsPayEntity;
import com.freesky.biz.rights.domain.RightsReceiveEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 通用话费充值
 */
public interface RightsMobileRechargeMapper extends BaseMapper<RightsMobileRechargeEntity> {

    Page selectRightsMobileRechargePage(Page page, @Param("entity") RightsMobileRechargeEntity entity);

    List<RightsMobileRechargeEntity> selectRightsMobileRechargePage(@Param("entity") RightsMobileRechargeEntity entity);

    public List<RightsMobileRechargeEntity> selectUnRechargeList();

    public int updateProcessedById(@Param("id") String id,
                                   @Param("processed") String processed);

    public int updateManualById(@Param("id") String id,
                                   @Param("processed") String processed);

    public int updateRechargeResultById(RightsMobileRechargeEntity rechargeDetail);
    public int insertIntegralMobileLog(RightsMobileRechargeEntity rechargeDetail);

    public int getRechargeMobileLogCount(@Param("detailId") String detailId);
}
